package com.java.basis.testfinal;

/**
 * 测试 final的使用
 * @author wangning
 * @create 2021-04-08 14:55
 */
class User {
	private String name;

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}
}
public class TestFinal {
	private static final String STRING = "a";
	private static final User USER = new User();
	public static void main(String[] args) {
		USER.setName("nihao");
		System.out.println("USER = " + USER.getName());
		final String ss = "aaaa";
		System.out.println("ss = " + ss);
		System.out.println("STRING = " + STRING);
	}

}
